<?php
	require 'config.php';
	
	$content = $_POST['content'];
	$time = $_POST['time'];
	
	mysql_query("INSERT INTO advertisement (content,date) VALUES ('$content','$time')") or die('SQL 错误！');

	echo mysql_affected_rows();
	
	mysql_close();
?>